package com.erp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "bus_goods")
@ToString
public class Goods implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    private String goodsname;
    private String produceplace;
    private String size;
    private String goodspackage;
    private String productcode;
    private String promitcode;
    private String description;
    private Double price;
    private Integer number;
    private Integer dangernum;
    private String goodsimg;
    private Integer available;
    private Integer providerid;

    @TableField(exist = false)
    private String providername;

}